package com.huawei.statistics.controller.index;


import com.huawei.statistics.pojo.admin.SystemInfo;
import com.huawei.statistics.pojo.index.Banner;
import com.huawei.statistics.pojo.video.ResoluAddress;
import com.huawei.statistics.pojo.video.TVPlay;
import com.huawei.statistics.pojo.video.Video;
import com.huawei.statistics.service.admin.SystemInfoService;
import com.huawei.statistics.service.index.BannerService;
import com.huawei.statistics.service.video.ResoluAddressService;
import com.huawei.statistics.service.video.TVPlayService;
import com.huawei.statistics.service.video.VideoService;
import com.huawei.statistics.utils.ExcelUtil;
import com.huawei.statistics.utils.XMLUtil;
import com.huawei.statistics.vo.common.HttpResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;


/**
 * Created by 18573 on 2018/9/14.
 */

@Controller
@RequestMapping("")
public class IndexController {


    @GetMapping("/getList")
    @ResponseBody
    public List getList(){

        return XMLUtil.setDate();

    }


    @GetMapping("/readExcel")
    @ResponseBody
    public String readExcel(){

        return ExcelUtil.readExcel();
    }



}
